package com.example.ceramics.entity;

import java.io.Serializable;

public class GoodsEntity implements Serializable,Cloneable {
    private int GoodsId;
    private String goodsName;
    private double goodsPrice;
    private String goodsSignature;
    private String goodsType;
    private int goodsImg;
    private boolean cartSelected = false;

    public GoodsEntity() {
    }

    public GoodsEntity(int goodsId, String goodsName, double goodsPrice, String goodsSignature, String goodsType, int goodsImg) {
        this.GoodsId = goodsId;
        this.goodsName = goodsName;
        this.goodsPrice = goodsPrice;
        this.goodsSignature = goodsSignature;
        this.goodsType = goodsType;
        this.goodsImg = goodsImg;
    }

    public int getGoodsId() {
        return GoodsId;
    }

    public void setGoodsId(int goodsId) {
        GoodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public String getGoodsSignature() {
        return goodsSignature;
    }

    public void setGoodsSignature(String goodsSignature) {
        this.goodsSignature = goodsSignature;
    }

    public String getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(String goodsType) {
        this.goodsType = goodsType;
    }

    public int getGoodsImg() {
        return goodsImg;
    }

    public void setGoodsImg(int goodsImg) {
        this.goodsImg = goodsImg;
    }

    public boolean getCartSelected() {
        return cartSelected;
    }

    public void setCartSelected(boolean cartSelected) {
        this.cartSelected = cartSelected;
    }

    @Override
    public Object clone() {
        GoodsEntity goodsEntity = null;
        try{
            goodsEntity = (GoodsEntity)super.clone();
        }catch(CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return goodsEntity;
    }
}